<div class="row">
    <div class="box">
        <div class="title"><!--Step 2 Of 3 : Confirm Order--><?php echo $lang['STEP2']; ?></div>

        <!--test   -->
        <?php
        //var_dump($_POST['txtShippingEmail']);
        //die();
        $_SESSION['shipMail'] = $_POST['txtShippingEmail'];
        //echo $_SESSION['shipMail'];
        //die();
//    $_SESSION['acc_id'];
//    echo $product_id;
//    print $_SESSION['acc_id'];
//    die();
        ?>

        <form action="<?php echo $_SERVER['PHP_SELF']; ?>?step=3" method="post" name="frmCheckout" id="frmCheckout">
            <?php
            $cartContent = getCartContent();
            $numItem = count($cartContent);

            if ($numItem > 0) {
                ?>
                <table id="table_shop_cart">
                    <tr id="title_cart">
                        <td width="10%" style="padding-left:10px">Image</td>
                        <td width="45%" style="padding-left:10px"><!--Product Name--><?php echo $lang['CON_PRO_NAME']; ?></td>
                        <td width="20%" align="center"><!--Price--><?php echo $lang['CON_PRICE']; ?></td>
                        <td width="15%" align="center"><!--Quantity--><?php echo $lang['CON_QUANTITY']; ?></td>
                        <td width="25%" align="center"><!--Subtotal--><?php echo $lang['CON_SUBTOTAL']; ?></td>
                    </tr>
                    <?php
                    $subtotal = 0;
                    $total = 0;
                    for ($i = 0; $i < $numItem; $i++) {
                        extract($cartContent[$i]);
                        $subtotal = $price * $ct_qty;
                        $total += $price * $ct_qty;
                        ?>
                        <tr class="row_cart">
                            <td class="product_name_cart"><img src="<? echo W_ROOT; ?>/company/product/uploads/<?php echo $thumbnail; ?>"/></td>
                            <td class="product_name_cart"><?php echo $product_name; ?></td>
                            <td class="product_price_cart"><?php echo $price . "$"; ?></td>
                            <td class="product_price_cart"><?php echo $ct_qty; ?></td>
                            <td class="product_price_cart"><?php echo $subtotal . "$"; ?></td>
                        </tr>
                        <?php
                    }
                    $_SESSION['count_product'] = $cartContent;
                    ?>
                    <tr bgcolor="#a5a3a4"><td colspan="4"></td></tr>
                    <tr>
                        <td colspan="2"></td>
                        <td id="total_text_cart"><!--Total--><?php echo $lang['CON_TOTAL']; ?> :</td>
                        <td class="product_price_cart"><?php echo $total . "$"; ?></td>
                    </tr>
                    <tr bgcolor="#a5a3a4"><td colspan="4"></td></tr>
                </table>
                <?php
            }
            ?>
            <p>&nbsp;</p>

            <table width="570px" border="0" cellpadding="5" cellspacing="1" bgcolor="#DDDDDD">
                <tr class="title_check">
                    <td colspan="2" style="padding-left:10px"><!--Shipping Information--><?php echo $lang['SHIP_INFOMATION']; ?></td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--First Name--><?php echo $lang['SHIP_FIR_NAME']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingFirstName']; ?>
                        <input type="hidden" name="hidShippingFirstName" id="hidShippingFirstName" value="<?php echo $_POST['txtShippingFirstName']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Last Name--><?php echo $lang['SHIP_LAS_NAME']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingLastName']; ?>
                        <input type="hidden" name="hidShippingLastName" id="hidShippingLastName" value="<?php echo $_POST['txtShippingLastName']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Title--><?php echo $lang['SHIP_TITLE']; ?></td>
                    <td class="title_result"><?php echo $_POST['selShippingTitle']; ?>
                        <input type="hidden" name="hidShippingTitle" id="hidShippingTitle" value="<?php echo $_POST['selShippingTitle']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Address--><?php echo $lang['ADDRSELLER']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingAddress']; ?>
                        <input type="hidden" name="hidShippingAddress" id="hidShippingAddress" value="<?php echo $_POST['txtShippingAddress']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Telephone--><?php echo $lang['SHIP_PHONE']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingPhone']; ?>
                        <input type="hidden" name="hidShippingPhone" id="hidShippingPhone" value="<?php echo $_POST['txtShippingPhone']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Mobile Phone--><?php echo $lang['SHIP_MPHONE']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingMobile']; ?>
                        <input type="hidden" name="hidShippingMobile" id="hidShippingMobile" value="<?php echo $_POST['txtShippingMobile']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Email--><?php echo $lang['SHIP_EMAIL']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingEmail']; ?>
                        <input type="hidden" name="hidShippingEmail" id="hidShippingEmail" value="<?php echo $_POST['txtShippingEmail']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Province / State--><?php echo $lang['SHIP_PRO_STATE']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingState']; ?>
                        <input type="hidden" name="hidShippingState" id="hidShippingState" value="<?php echo $_POST['txtShippingState']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--City--><?php echo $lang['SHIP_CITY']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingCity']; ?>
                        <input type="hidden" name="hidShippingCity" id="hidShippingCity" value="<?php echo $_POST['txtShippingCity']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Country--><?php echo $lang['SHIP_COUNTRY']; ?> </td>
                    <td class="title_result"><?php echo $_POST['txtShippingCountry']; ?>
                        <input type="hidden" name="hidShippingCountry" id="hidShippingCountry" value="<?php echo $_POST['txtShippingCountry']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Postal / Zip Code--><?php echo $lang['SHIP_ZIP_CODE']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtShippingPostalCode']; ?>
                        <input type="hidden" name="hidShippingPostalCode" id="hidShippingPostalCode" value="<?php echo $_POST['txtShippingPostalCode']; ?>" />
                    </td>
                </tr>
            </table>
            <p>&nbsp;</p>
            <table width="570px" border="0" cellpadding="5" cellspacing="1" bgcolor="#DDDDDD">
                <tr class="title_check">
                    <td colspan="2" style="padding-left:10px"><!--Payment Information--><?php echo $lang['PAY_PAYMENT_INFORMATION']; ?></td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--First Name--><?php echo $lang['SHIP_FIR_NAME']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentFirstName']; ?>
                        <input type="hidden" name="hidPaymentFirstName" id="hidPaymentFirstName" value="<?php echo $_POST['txtPaymentFirstName']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Last Name--><?php echo $lang['SHIP_LAS_NAME']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentLastName']; ?>
                        <input type="hidden" name="hidPaymentLastName" id="hidPaymentLastName" value="<?php echo $_POST['txtPaymentLastName']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Title--><?php echo $lang['SHIP_TITLE']; ?></td>
                    <td class="title_result"><?php echo $_POST['selPaymentTitle']; ?>
                        <input type="hidden" name="hidPaymentTitle" id="hidPaymentTitle" value="<?php echo $_POST['selPaymentTitle']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Address--><?php echo $lang['ADDRSELLER']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentAddress']; ?>
                        <input type="hidden" name="hidPaymentAddress" id="hidPaymentAddress" value="<?php echo $_POST['txtPaymentAddress']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Telephone--><?php echo $lang['SHIP_PHONE']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentPhone']; ?>
                        <input type="hidden" name="hidPaymentPhone" id="hidPaymentPhone" value="<?php echo $_POST['txtPaymentPhone']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Mobile Phone--><?php echo $lang['SHIP_MPHONE']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentMobile']; ?>
                        <input type="hidden" name="hidPaymentMobile" id="hidPaymentMobile" value="<?php echo $_POST['txtPaymentMobile']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Email--><?php echo $lang['SHIP_EMAIL']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentEmail']; ?>
                        <input type="hidden" name="hidPaymentEmail" id="hidPaymentEmail" value="<?php echo $_POST['txtPaymentEmail']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Province / State--><?php echo $lang['SHIP_PRO_STATE']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentState']; ?>
                        <input type="hidden" name="hidPaymentState" id="hidPaymentState" value="<?php echo $_POST['txtPaymentState']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--City--><?php echo $lang['SHIP_CITY']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentCity']; ?>
                        <input type="hidden" name="hidPaymentCity" id="hidPaymentCity" value="<?php echo $_POST['txtPaymentCity']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Country --><?php echo $lang['SHIP_COUNTRY']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentCountry']; ?>
                        <input type="hidden" name="hidPaymentCountry" id="hidPaymentCountry" value="<?php echo $_POST['txtPaymentCountry']; ?>" />
                    </td>
                </tr>
                <tr>
                    <td class="title_checkout"><!--Postal / Zip Code--><?php echo $lang['SHIP_ZIP_CODE']; ?></td>
                    <td class="title_result"><?php echo $_POST['txtPaymentPostalCode']; ?>
                        <input type="hidden" name="hidPaymentPostalCode" id="hidPaymentPostalCode" value="<?php echo $_POST['txtPaymentPostalCode']; ?>" />
                    </td>
                </tr>
            </table>
            <p>&nbsp;</p>
            <table width="570px" border="0" cellpadding="5" cellspacing="1" bgcolor="#DDDDDD">
                <tr>
                    <td class="title_payment" width="30%"><!--Payment Method--><?php echo $lang['PAY_METHOD']; ?></td>
                    <td class="title_result"><?php echo $_POST['optPayment']; ?>
                        <input name="hidPaymentMethod" type="hidden" id="hidPaymentMethod" value="<?php echo $_POST['optPayment']; ?>" />
                    </td>
                </tr>
            </table>
            <p>&nbsp;</p>
            <p align="center"> 
                <input style="width:210px; margin-right:60px" name="btnBack" type="button" id="btnBack" value=" <?php echo $lang['CON_MODIFY']; ?>" onClick="window.location.href='checkout.php?step=1';"/>
                <input style="width:120px" type="submit" name="btnConfirm" id="btnConfirm" value="<?php echo $lang['CON_ORDER']; ?> "/>
            </p>
        </form>

    </div><!--<div class="box">-->
</div> <!--<div class="row">-->
